const path = require('path');

module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        pathRewrite: {
          '^/api': '/mock'
        }
      },
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        'styles': path.join(__dirname, 'src/assets/styles'),
        'common': path.join(__dirname, 'src/common')
      }
    }
  }
}